﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Ozone.Views.Widget
{
    /// <summary>
    /// UCMFC1.xaml 的交互逻辑
    /// </summary>
    public partial class UCMFC1 : UserControl
    {
        bool bIsStart = false;
        List<Image> lstHead = new List<Image>();

        public UCMFC1()
        {
            InitializeComponent();

        }

        //保护阀开
        public void setStatus(bool bOpen)
        {
            if (bOpen)
            {
                img2.Visibility = Visibility.Visible;
                img1.Visibility = Visibility.Collapsed;
            }
            else
            {
                img2.Visibility = Visibility.Collapsed;
                img1.Visibility = Visibility.Visible;
            }
        }

        public void setStatus(string bOpen)
        {
            if (bOpen == "1")
            {
                img2.Visibility = Visibility.Visible;
                img1.Visibility = Visibility.Collapsed;
            }
            else
            {
                img2.Visibility = Visibility.Collapsed;
                img1.Visibility = Visibility.Visible;
            }
        }
    }

}
